// interface Girl {
//   name: string;
//   age: number;
//   bust: number;
//   waistline?: number;
// }

// // 与type 区别
// // type Girl1 = number;

// const girl = {
//   name: "dajiao",
//   age: 22,
//   bust: 90,
//   waistline: 22
// };

// const screenResume = (girl: Girl) => {
//   const { name, age, bust } = girl;
//   age <= 24 && bust >= 90 && console.log(name + " in");
//   (age > 24 || bust < 90) && console.log(name + " out");
// };

// const getResume = (girl: Girl) => {
//   const { name, age, bust } = girl;
//   console.log(name + " age is " + age);
//   console.log(name + " bust is " + bust);
//   girl.waistline && console.log(girl.waistline);
// };

// screenResume(girl);
// getResume(girl);
